package com.leyu.search.service;

import java.util.Collection;
import java.util.List;

import com.leyu.search.index.domain.GoodsIndexItem;

/**
 * @author change
 * 
 */
public interface GoodsSearchService {
    /**
     * search
     * @param searchQuery
     * @return
     */
	public SearchResult search(SearchQueryParam searchQuery);
	
	public String[] getDefaultHotKeyWords();
	
	public boolean addToIndex(GoodsIndexItem item);
	
	public boolean addToIndex(Collection<GoodsIndexItem> datas);	
	
	public boolean removeIndex(String id);
	public boolean removeIndex(List<String> ids);
	public boolean removeAllIndex();
	 

}
